package com.trade.common.annontation;

import javax.validation.Constraint;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @Desc: 水果名称注解
 * @Version: v1.0 2018/3/23 17:47
 * @Author: zfb
 * @JDK Version: 1.8.0_51
 */
@Target({FIELD,CONSTRUCTOR})
@Retention(RUNTIME)
@Documented
@Constraint()
public @interface FruitName {
    String value() default "";
}
